@extends('admin.layout.base')

@section('content')
    <div class="layui-card-body">
        <div class="layui-form" lay-filter="">
            <form class="layui-form" data-url="{{route('webNews.insert')}}">
                {{csrf_field()}}
                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="red">*</span>标题</label>
                    <div class="layui-input-inline" style="width: 60%;">
                        <input type="text" name="title" value="" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">浏览量</label>
                    <div class="layui-input-inline" style="width: 60%;">
                        <input type="text" name="browse" value="" lay-verify="number" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="red">*</span>封面图</label>
                    <div class="layui-input-inline" style="width: 45%">
                        <input name="cover_img" lay-verify="required" id="img_url" placeholder="图片地址" value="" class="layui-input">
                    </div>
                    <div class="layui-input-inline layui-btn-container" style="width: auto;">
                        <a type="button" class="layui-btn layui-btn-primary uploadImg">
                            <i class="layui-icon"></i>上传图片
                        </a>
                        <span id="layer-photos">
                            <img class="layui-btn shoImg" style="padding: 0px; display: none" src="" width="60px">
                        </span>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-inline">
                        <input type="radio" name="status" value="0" title="启用" checked="">
                        <input type="radio" name="status" value="1" title="停用">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="red">*</span>新闻详情</label>
                    <div class="layui-input-inline" style="width: 86%;top:10px">
                        {!! ueditor('', 'content') !!}
                    </div>
                </div>

                <div class="layui-form-item"></div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-sm" lay-submit lay-filter="submitIng">提 交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection

